package cn.linpq.menu;
import cn.linpq.frame.MineFrame;
import javax.swing.*;
/**
 * Desc : 扫雷工具栏类
 * ClassName : cn.linpq.menu.MineMenuBar
 * @author : 林鹏群
 * @date : 2022/12/12 11:27
 */
public class MineMenuBar extends JMenuBar {
    private MineFrame mineFrame;
    private GameMenu gameMenu;
    private HelpMenu helpMenu;
    public MineMenuBar(MineFrame mineFrame){
        this.mineFrame = mineFrame;
        //初始化`游戏`菜单
        this.gameMenu = new GameMenu(mineFrame);
        //添加`游戏`菜单
        this.add(gameMenu);
        //初始化`帮助`菜单
        this.helpMenu = new HelpMenu(mineFrame);
        //添加`帮助`菜单
        this.add(helpMenu);
    }
}
